Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Basin / subgrid_time table #1975

Merged
merged 16 commits into from
Dec 20, 2024
Merged

Add Basin / subgrid_time table #1975

merged 16 commits into from
Dec 20, 2024

Conversation

visr
Copy link
Member

@visr visr commented Dec 13, 2024

Fixes #1010

This adds Basin / subgrid_time. So far the only relation we could update over time was Q(h) (TabulatedRatingCurve / time), and that is implemented differently. I wrote #1976 to get those more in line. It's good to read that since it explains the implementation here.

Things I dislike:

  • Need a special case to allow an underscore in Basin / subgrid_time, just like Basin / concentration_.
  • Other dynamic tables are just named time and have a static counterpart like Basin / static, Basin / time. Since we already have Basin / subgrid we cannot do that.

@visr visr marked this pull request as ready for review December 16, 2024 15:25
Copy link
Member

@evetion evetion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you document the construction of the new interpolation objects? That inner loop is opaque to me (with complexted indexlookups etc).

core/src/parameter.jl Outdated Show resolved Hide resolved
core/src/parameter.jl Outdated Show resolved Hide resolved
core/src/parameter.jl Outdated Show resolved Hide resolved
core/src/read.jl Outdated Show resolved Hide resolved
core/src/write.jl Show resolved Hide resolved
core/src/read.jl Show resolved Hide resolved
core/src/read.jl Show resolved Hide resolved
core/src/read.jl Show resolved Hide resolved
core/src/read.jl Outdated Show resolved Hide resolved
core/src/read.jl Outdated
cache_parameters = true,
)
# # These should only be pushed when the subgrid_id has changed
if subgrid_id_time[end] != subgrid_id
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm, not sure if I get it, but if we group by subgrid_id, this will always be true?

core/src/parameter.jl Outdated Show resolved Hide resolved
core/src/read.jl Outdated Show resolved Hide resolved
core/src/read.jl Show resolved Hide resolved
@evetion
Copy link
Member

evetion commented Dec 20, 2024

Friday afternoon eh. You better not make a release after this, but enjoy the weekend 🎉

@visr visr merged commit aecf57f into main Dec 20, 2024
28 checks passed
@visr visr deleted the subgrid-time branch December 20, 2024 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Time dependent subgrid
2 participants